﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.IO;

namespace PeapodCatcher {

    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application {

        //private List<Feed> _feeds;
        //public List<Feed> Feeds {
        //    get {
        //        if (_feeds == null) {
        //            using (Data db = new Data(Common.DatabasePath)) {
        //                var feedsQuery = from f in db.Feed select f;
        //                _feeds = feedsQuery.ToList<Feed>();
        //            }
        //        }
        //        return _feeds;
        //    }
        //}

        private void Application_Startup(object sender, StartupEventArgs e) {
            AppDomain.CurrentDomain.SetData("DataDirectory", Common.AppDataPath);
        }

    }
}
